#!/usr/bin/env python
# -*- coding: utf-8 -*-

s=input()
dx="零壹贰叁肆伍陆柒捌玖拾"
dw="亿仟佰拾萬仟佰拾元"
c=""
for i in range(len(s)):
    ch = int(s[i])
    #  print(dx[ch], dw[len(dw) - len(s) + int(i)], len(s) - int(i))
    c = c + dx[ch] + dw[len(dw) - len(s) + int(i)] 
print(c + "整")
